﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Alloction.aspx.cs" Inherits="Allocatin_Alloction" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../js/rl.js"></script>

    <script type="text/javascript" src="../js/submit.js"></script>

    <script type="text/javascript">
  
        function check(id)
        {
       
           id.value="";
        }
        function checkddl()
        {
             if(document.getElementById("ddljsWare").selectedIndex==0)
            {
                document.getElementById("ddljsWare").focus();
                alert("请选择收货仓库");
                return false;
            }
            if(document.getElementById("ddljsWare").options[document.getElementById("ddljsWare").selectedIndex].text==document.getElementById("lblWarehouse").innerHTML)
            {
                document.getElementById("ddljsWare").focus();
                alert("同一仓库不能调拨");
                return false;
            }
        }
        
        function account()
        {
            var sl=document.getElementById("txtNum").value;
            var dj=document.getElementById("txtCmoney").value;
            var Discount=document.getElementById("txtDiscount").value;
            if(sl==""||dj=="")
            {
                document.getElementById("txtWxjg").value="";
            }
            else if(isNaN(sl))
            {
                document.getElementById("Label2").innerText="数量格式有误，必须由数字组成";
            }
            else if(isNaN(dj))
            {
                document.getElementById("Label2").innerText="单价格式有误,必须由数字组成";
            }
            else if(isNaN(Discount))
            {
                document.getElementById("Label2").innerText="单价格式有误,必须由数字组成";
            }
            else if(sl!=""&&dj!=""&&!isNaN(sl)&&!isNaN(dj)&&!isNaN(Discount))
            {
                document.getElementById("txtTotalMoney").value=sl*dj*Discount;
                
            }
        }
     

     function dispAdd()
     {
        document.getElementById("flag").style.display="none";
     }
    

    </script>

</head>
<body style="margin-top: 10px;">
    <form id="form1" runat="server" onsubmit=" checknull(this)">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" height="22">
                    <img src="../images/module.gif" width="20" alt="" height="22" /></td>
                <td style="width: 335px">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="990" align="right">
                    [<font color="red"> <a href="javascript:location.href=document.referrer;" class="F_red">
                        <font color="red">返回</font></a></font>]
                </td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="1" cellspacing="1" class="tabGg">
            <tr>
                <th height="30" colspan="4" bgcolor="#ffffff" class="font14">
                    商品调拨</th>
            </tr>
            <tr>
                <td height="22"  colspan="4" bgcolor="#ffffff" class="left">
                    <asp:Label ID="lblMsg" runat="server" Text="单号：" ForeColor="Red"></asp:Label>
              <asp:Label ID="lblDh" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <th bgcolor="#ffffff" class="r_bg" width="15%">
                    调出仓库：</th>
                <td bgcolor="#ffffff" class="right_bg" style="width: 294px">
                    <asp:Label ID="lblWarehouse" runat="server"></asp:Label></td>
                <th bgcolor="#ffffff" class="r_bg" width="14%">
                    接收仓库：</th>
                <td bgcolor="#ffffff" class="right_bg" width="37%">
                    <asp:DropDownList ID="ddljsWare" runat="server" Width="130px">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th height="32" bgcolor="#FFFFFF" class="r_bg">
                    商品编号：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:Label ID="lblCode" runat="server" ForeColor="#0000C0"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                    商品条码：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:Label ID="lblBarcode" runat="server" ForeColor="#0000C0"></asp:Label></td>
            </tr>
            <tr>
                <th height="34" bgcolor="#FFFFFF" class="r_bg">
                    商品品牌：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:Label ID="lblBrand" runat="server" ForeColor="Red"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                    商品名称：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:Label ID="lblComoName" runat="server" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <th height="31" bgcolor="#FFFFFF" class="r_bg">
                    规格型号：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px;">
                    <asp:Label ID="lblSpeci" runat="server" ForeColor="#0000C0"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                    商品单位：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:Label ID="lblUnits" runat="server" ForeColor="#0000C0"></asp:Label>
                </td>
            </tr>
            <tr>
                <th height="29" bgcolor="#FFFFFF" class="r_bg">
                    生产厂商：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="width: 294px">
                    <asp:Label ID="lblSupper" runat="server"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg">
                    单价：</th>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:Label ID="lblPrice" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px">
                    调拨日期：</th>
                <td bgcolor="#ffffff" class="right_bg" style="width: 294px; height: 26px">
                    <input id="txtdbdate" runat="server" type="text" class="input1" /></td>
                <th bgcolor="#ffffff" class="r_bg" style="height: 26px">
                    调拨数量：</th>
                <td bgcolor="#ffffff" class="right_bg" style="height: 26px">
                    <input id="txtNum" type="text" value="1" onblur="if(this.value=='')this.value=1"
                        onfocus="if(this.value==1)this.value=''" style="color: Red" class="input1" runat="server" /></td>
            </tr>
            <tr id="flag">
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 26px">
                    审核：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 26px; width: 294px;">
                    <asp:RadioButton ID="drbtnflag" runat="server" ForeColor="Red" GroupName="flag" Text="通过" />
                    <asp:RadioButton ID="rdbtnflag2" runat="server" ForeColor="Red" GroupName="flag"
                        Text="不通过" /></td>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 26px">
                </th>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 26px">
                </td>
            </tr>
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 26px">
                    备注：</th>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg" style="height: 26px">
                    <asp:TextBox ID="txtContent" runat="server" CssClass="input1" Width="369px"></asp:TextBox></td>
            </tr>
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 16px">
                    操作人：</th>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 16px; width: 294px;">
                    <asp:Label ID="lblName" runat="server"></asp:Label></td>
                <th bgcolor="#FFFFFF" class="r_bg" style="height: 16px">
                </th>
                <td bgcolor="#FFFFFF">
                </td>
            </tr>
            <tr>
                <th bgcolor="#FFFFFF" class="r_bg">
                </th>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                    <asp:Button ID="btnAdd" CssClass="submit" runat="server" Text="确认" OnClientClick="return checkddl()"
                        OnClick="btnAdd_Click" />
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="HidWareid" runat="server" />
    </form>
</body>
</html>
